package com.reader.api.entity.usercenter;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
*
* @@description 
* @author        jiahaikun
* @date          2018-11-02
*/
@TableName("reader_app_user_log")
public class ReaderAppUserLog extends Model<ReaderAppUserLog> {

private static final long serialVersionUID = 1L;



@TableId(value="id", type= IdType.AUTO)


private Integer id;


@TableField("app_user_id")

private Integer appUserId;

/**
* 登录token
*/

@TableField("token")

private String token;


@TableField("last_login_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date lastLoginDt;

/**
* 设备ID
*/

@TableField("device_id")

private String deviceId;

/**
* 手机类型
*/

@TableField("device_model_type")

private String deviceModelType;


public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public Integer getAppUserId() {
return appUserId;
}

public void setAppUserId(Integer appUserId) {
this.appUserId = appUserId;
}

public String getToken() {
return token;
}

public void setToken(String token) {
this.token = token;
}

public Date getLastLoginDt() {
return lastLoginDt;
}

public void setLastLoginDt(Date lastLoginDt) {
this.lastLoginDt = lastLoginDt;
}

public String getDeviceId() {
return deviceId;
}

public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}

public String getDeviceModelType() {
return deviceModelType;
}

public void setDeviceModelType(String deviceModelType) {
this.deviceModelType = deviceModelType;
}

@Override
protected Serializable pkVal() {
return this.id;
}

@Override
public String toString() {
return "ReaderAppUserLog{" +
	", id=" + id +
	", appUserId=" + appUserId +
	", token=" + token +
	", lastLoginDt=" + lastLoginDt +
	", deviceId=" + deviceId +
	", deviceModelType=" + deviceModelType +
"}";
}
}